<template>
  <el-form :model="formData" label-width="100px">
    <el-row :gutter="20">
      <el-col :span="6">
        <el-form-item label="项目编号">
          <el-input v-model="formData.number"></el-input> </el-form-item
      ></el-col>
      <el-col :span="6">
        <el-form-item label="客户名称">
          <el-input v-model="formData.name"></el-input> </el-form-item
      ></el-col>
      <el-col :span="6">
        <el-form-item label="项目级别">
          <el-select v-model="formData.level" clearable >
            <el-option label="A" value="A"> </el-option>
            <el-option label="B" value="B"> </el-option>
            <el-option label="C" value="C"> </el-option> </el-select
          ></el-form-item
        ></el-col
      >
      <el-col :span="6">
        <el-form-item label="执行时间">
          <el-date-picker v-model="formData.executionTime" type="daterange" style="width:100%">
          </el-date-picker> </el-form-item
      ></el-col>
      <el-col :span="6">
        <el-form-item label="执行进展" clearable>
          <el-select v-model="formData.progress">
            <el-option
              v-for="item in states"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select> </el-form-item
      ></el-col>
        <el-col :span="6" style="text-align: right;">
         <el-button>重置</el-button>
          <el-button type="primary">查询</el-button>
        </el-col>
    </el-row>
  </el-form>
</template>
<script lang="ts" setup>
import { reactive } from "vue";
const states = [
  { value: "未执行", label: "未执行" },
  { value: "已执行", label: "已执行" },
  { value: "执行成功", label: "执行成功" },
];
const formData = reactive({
  number: "",
  name: "",
  level: "",
  executionTime: "",
  progress: "",
});
</script>
